import request from '@/utils/request'

export function queryTreeList(data) {
  return request({
    url: '/getHosTreeList',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function queryHospitalId(data) {
  return request({
    url: '/hospitalId',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function saveAdd(data) {
  return request({
    url: '/add',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function postUpdate(data) {
  return request({
    url: '/update',
    method: 'put',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function postDeptDelete(data) {
  return request({
    url: '/deptDelete',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function queryDeptUser(data) {
  return request({
    url: '/findUserOfDept',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
